package com.jsaas.web.route;

import com.jfinal.config.Routes;
import com.jsaas.sys.controller.PermissionController;
import com.jsaas.sys.controller.CacheController;
import com.jsaas.sys.controller.ErrorController;
import com.jsaas.sys.controller.IndexController;
import com.jsaas.sys.controller.LoginController;
import com.jsaas.sys.controller.MenuController;
import com.jsaas.sys.controller.RoleController;
import com.jsaas.sys.controller.UserController;

/**   
* @Title: SysRoute.java 
* @Package com.jsaas.web.route 
* @Description: TODO(用一句话描述该文件做什么) 
* @author tuozq 
* @date 2017年12月13日 上午11:20:05 
* @version V1.0   
*/
public class SysRoutes extends Routes {

	@Override
	public void config() {
		// TODO Auto-generated method stub
		SysRoutes me = this;
		me.setBaseViewPath("/views");
		me.add("/", IndexController.class, "/index");
		me.add("/login", LoginController.class, "/user");
		me.add("/user", UserController.class, "/user");
		me.add("/menu", MenuController.class, "/menu");
		me.add("/permission", PermissionController.class, "/permission");
		me.add("/role", RoleController.class, "/role");
		me.add("/error", ErrorController.class, "/error");
		me.add("/cache", CacheController.class);
	}

}
